<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>添加活动</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link href="../../css/demo.css" rel="stylesheet" type="text/css" />
	<script src="../../js/boot.js" type="text/javascript"></script>
	<script src="../../js/activity/activity.js" type="text/javascript"></script>
    <style type="text/css">
    html, body
    {
        font-size:12px;
        padding:0;
        margin:0;
        border:0;
        height:100%;
        overflow:hidden;
    }
    </style>
</head>
<body>    
     <!-- 数据获取到以name的方式进行装载装载到相应的位置进行显示 -->
    <form id="form1" method="post"  enctype="multipart/form-data"> 
    	<input name="activityId" class="mini-hidden" id="activityId"/>
        <div style="padding-left:11px;padding-bottom:5px;" >
            <table style="table-layout:fixed;margin-top:20px;align:center">
                <tr style="padding:10px">
                    <td>活动名称</td>
                    <td style="padding:10px">    
                        <input name="activityName" required="true"  style="width:180px"  class="mini-textbox" id="activityName"/>
                    </td>
                    <td>活动价格</td>
                    <td style="padding:10px">    
                       <input name="activityPrice" required="true" vtype="float" id="activityPrice"  class="mini-textbox" style="width:180px;" />
                    </td>
                </tr>
                 <tr style="padding:10px">
                    <td>活动开始时间</td>
                    <td style="padding:10px">    
                    	<input name="activityBeginTime" valueType="String" required="true" style="width:180px;" class="mini-datepicker" format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss" showTime="true" id="activityBeginTime"/>
                    </td>
                    <td>活动结束时间</td>
                    <td style="padding:10px">    
                    	<input name="activityEndTime" valueType="String" required="true" style="width:180px;" class="mini-datepicker" format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss" showTime="true" id="activityEndTime"/>
                    </td>
                </tr>
                <tr style="padding:10px">
                	 <td>活动折扣</td>
                	<td style="padding:10px">    
                       <input name="discount" vtype="float" required="true" id="discount"  class="mini-textbox" style="width:180px;" />
                    </td>
                    <td>权限可用状态</td>
                    <td style="padding:10px">    
                        <select name="disabledState" class="mini-radiobuttonlist" id="disabledState">
                        	<option value="0">可用</option>
                        	<option value="1">禁用</option>
                    	</select>
                    </td>
                </tr>
            </table>
        </div>
        <div id="tabs1" class="mini-tabs" activeIndex="0" style="width:100%;height:180px;padding-left:10px;" plain="false">
		    <div title="活动介绍" >
		        <textarea  name="activityContent"  required="true" style="width:100%;height:100%" id="activityContent" class="mini-textarea" emptyText="请输入活动介绍。。。"></textarea>
		    </div>
		</div>
        <div style="text-align:center;padding:20px;">               
            <a class="mini-button mini-button-primary" onclick="onOk" style="width:160px;margin-right:30px;">新增(更新)活动</a>       
            <a class="mini-button mini-button-primary" onclick="onCancel" style="width:160px;">取     消</a>  
        </div>        
    </form>
    <script type="text/javascript">
        mini.parse();
       	form = new mini.Form("#form1");
       
    </script>
</body>
</html>
